package com.haodai.vip.tomcat.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

/**
 * Created by huangtao on 17/6/19.
 */
public class DateUtils {

    public static String getGMT(long nowTime, int delay){
        Date date = new Date(nowTime+delay);
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("EEE, d-MMM-Y HH:mm:ss 'GMT'", Locale.US);
        simpleDateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
        return simpleDateFormat.format(date);
    }

}
